<?php
$user_agent = $_SERVER['HTTP_USER_AGENT'];
if (strpos($user_agent, 'MicroMessenger') === false) {
	exit(json_encode(array('code'=>-10001,'msg'=>'disappear...')));
}
$data = require __DIR__ . '/data.php';
include __DIR__ . '/include.php';
$rote = isset($_GET['s']) ? trim($_GET['s']) : '';
$type = isset($_GET['p']) ? trim($_GET['p']) : '';
if (preg_match('/eteras2/', $rote, $matches))  { //enter
	include  './enter.php';
} else if (preg_match('/share/', $rote, $matches)) { //share
	//include  './share.php';
}else{
	include  './enter.php';
}